﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using SES.CMS.DO;
using SES.CMS.BL;

namespace SES.CMS
{
    public partial class AlbumImage : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = 0;
            if (Request.QueryString["ID"] != null)
            {
                id = int.Parse(Request.QueryString["ID"].ToString());
                rpt.DataSource = new cmsAlbumBL().SelectByCategoryID(id, 0);
                rpt.DataBind();
                if (Session["lang"].ToString() == "VN")
                    Page.Title = new cmsCategoryBL().Select(new cmsCategoryDO { CategoryID = id }).Title;
                else
                    Page.Title = new cmsCategoryBL().Select(new cmsCategoryDO { CategoryID = id }).eTitle;
            }
            else
            {
                rpt.DataSource = new cmsAlbumBL().SelectAll(0);
                rpt.DataBind();
                if (Session["lang"].ToString() == "VN")
                    Page.Title = "Album - InTech";
                else
                    Page.Title = "Album - InTech";
            }
        }
        public string Change_AV(string ip_str_change)
        {
            return Ultility.Change_AV(ip_str_change);
        }
    }
}
